﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using FwProject.ShoppingMall.EventAdvertising;

namespace FwProject.EventAdvertising.Dto
{
    /// <summary>
    /// 秒杀对象
    /// </summary>
    [AutoMap(typeof(ShopSecondkill))]
    public class ShopSecondkillDto: EntityDto<Guid>
    {
        /// <summary>
        /// 商品编号
        /// </summary>
        [Display(Name = "商品编号")]
        public Guid ShopProductId { get; set; }

        /// <summary>
        /// 秒杀价格
        /// </summary>
        [Display(Name = "秒杀价格")]
        public decimal SecondkillPrice { get; set; } = 0m;

        /// <summary>
        /// 秒杀总的仓库数量
        /// </summary>
        [Display(Name = "秒杀总的仓库数量")]
        public int SecondkillCount { get; set; }

        /// <summary>
        /// 每个订单最大购买数
        /// </summary>
        [Display(Name = "每个订单最大购买数")]
        public int SecondkillSingleCount { get; set; }

        /// <summary>
        /// 秒杀开始时间
        /// </summary>
        [Display(Name = "秒杀开始时间")]
        public DateTime SecondkillBeginTime { get; set; }

        /// <summary>
        /// 秒杀结束时间
        /// </summary>
        [Display(Name = "秒杀结束时间")]
        public DateTime SecondkillEndTime { get; set; }

        /// <summary>
        /// 秒杀标题
        /// </summary>
        [Display(Name = "秒杀标题")]
        public string SecondkillTitle { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public long? CreatorUserId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreationTime { get; set; }
    }

    public class ShopSecondkillOutputDto:EntityDto<Guid>
    {
        /// <summary>
        /// 秒杀标题
        /// </summary>
        public string SecondkillTitle { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public Guid ShopProductId { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string ShopProductName { get; set; }

        /// <summary>
        /// 秒杀价格
        /// </summary>
        public decimal SecondkillPrice { get; set; }

        /// <summary>
        /// 秒杀总的仓库数量
        /// </summary>
        public int SecondkillCount { get; set; }

        /// <summary>
        /// 每个订单最大购买数
        /// </summary>
        public int SecondkillSingleCount { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime SecondkillBeginTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime SecondkillEndTime { get; set; }


    }

   
}
